package br.com.canvasForAll.model.dao;

import java.util.List;
import java.util.Map;

import javax.ejb.Stateless;
import javax.inject.Named;

import br.com.canvasForAll.model.entity.Perfil;
import br.com.canvasForAll.model.generic.dao.GenericCrudDao;
import br.com.canvasForAll.model.repository.PerfilRepository;

@Stateless
@Named(value="perfilRepository")
public class PerfilDao extends GenericCrudDao<Perfil> implements PerfilRepository {

	public PerfilDao() {
		super(Perfil.class);
	}
	
	@Override
	public Perfil obterId(Long entityId) throws Exception {
		return super.obterPorId(entityId);
	}

	@Override
	public List<Perfil> obterExemplo(String namedQuery, Map<String, Object> parametros) throws Exception {
		return super.obterPorExemplo(namedQuery, parametros);
	}

}
